AC_DEFUN([XINE_LIB_SUMMARY], [
    dnl ---------------------------------------------
    dnl Some infos:
    dnl ---------------------------------------------

    echo "xine-lib summary:"
    echo "----------------"

    dnl Input
    dis=""
    echo " * input plugins:"
    echo "   - file          - stdin_fifo"
    dnl network
    echo "  * Network:"
    echo "   - rtsp          - rtp"
    echo "   - net           - pnm"
    echo "   - http          - ftp"
    test x"$have_tls" = x"yes"       && echo "   - https         - ftpes" || dis="$dis https ftpes"
    test x"$have_libssh2" = x"yes"   && echo "   - sftp          - scp"   || dis="$dis sftp scp"
    echo "   - gopher"
    test x"$have_tls" = x"yes"       && echo "   - tls"   || dis="$dis tls"
    test x"$have_libnfs" = x"yes"    && echo "   - nfs"   || dis="$dis nfs"
    test x"$enable_mms" != x"no"     && echo "   - mms"   || dis="$dis mms"
    test x"$have_samba" = x"yes"     && echo "   - smb"   || dis="$dis smb"
    test x"$enable_ipv6" = x"yes"    && echo "   - IPv6"  || dis="$dis IPv6"
    test x"$dis" != x"" && echo "   (disabled plugins:$dis)"
    dnl optical discs
    dis=""
    echo "  * Optical discs:"
    echo "   - cdda"
    if test x"$enable_vcd" != x"no"; then
        test x"$enable_vcdo" != x"no" && echo "   - vcdo" || dis="$dis vcdo"
        echo "   - vcd"
    else dis="$dis vcd"
    fi
    if test x"$enable_dvd" != x"no"; then
        if test x"$with_external_dvdnav" != x"no"; then
            echo "   - dvd (external libs)"
        else
            echo "   - dvd (*INTERNAL* libs)"
        fi
    else dis="$dis dvd"
    fi
    test x"$have_libbluray" = x"yes" && echo "   - bluray"    || disc="$dis bluray"
    test x"$dis" != x"" && echo "   (disabled plugins:$disc)"
    dnl devices
    dis=""
    echo "  * Devices:"
    test x"$have_dvb" = x"yes"       && echo "   - dvb"       || dis="$dis dvb"
    test x"$have_v4l" = x"yes"       && echo "   - v4l"       || dis="$dis v4l"
    test x"$have_v4l2" = x"yes"      && echo "   - v4l2"      || dis="$dis v4l2"
    test x"$dis" != x"" && echo "   (disabled plugins:$dis)"
    dnl misc
    dis=""
    echo "  * Misc:"
    test x"$enable_vdr" != x"no"     && echo "   - vdr"       || dis="$dis vdr"
    test x"$have_gnomevfs" = x"yes"  && echo "   - gnome-vfs" || dis="$dis gnome-vfs"
    test x"$enable_ffmpeg" != x"no" -a x"$have_avformat" = x"yes" && echo "   - avio (libavformat)" || dis="$dis avio"
    echo "   - test"
    test x"$have_gcrypt" = x"yes"    && echo "   - crypto"    || dis="$dis crypto"
    test x"$dis" != x"" && echo "   (disabled plugins:$dis)"
    echo ""

    dnl Demuxers
    dis=""
    echo " * demultiplexer plugins:"
    echo "   - 4xm            - aac"
    echo "   - ac3            - aiff"
    test x"$enable_asf" != x"no"     && echo "   - asf" || dis="$dis asf"
    test x"$enable_ffmpeg" != x"no" -a x"$have_avformat" = x"yes" && echo "   - avformat (with libavformat)" || dis="$dis avformat"
    echo "   - avi            - cdda"
    echo "   - ea wve         - film"
    echo "   - FLAC"
    test x"$have_libflac" = x"yes"   && echo "   - FLAC (with libFLAC)" || dis="$dis libFLAC"
    echo "   - fli            - flv"
    echo "   - idcin          - iff"
    if test x"$have_imagemagick" = x"yes" || test x"$have_gdkpixbuf" = x"yes" || test x"$have_libjpeg" = x"yes" || test x"$have_libpng" = x"yes" ; then
        echo "   - image"
    else dis="$dis image"
    fi
    echo "   - interplay mve  - ivf"
    echo "   - matroska"
    test x"$enable_mng" != x"no"     && echo "   - mng" || dis="$dis mng"
    test x"$have_modplug" = x"yes"   && echo "   - mod" || dis="$dis mod"
    echo "   - mpeg           - mpeg_audio"
    echo "   - mpeg_block     - mpeg_elem"
    echo "   - mpeg_pes       - mpeg_ts"
    test x"$enable_nosefart" != xno  && echo "   - Nosefart (NSF)" || dis="$dis nosefart"
    echo "   - nsf            - nsv"
    if test x"$have_vorbis" = x"yes" || test x"$with_theora" = x"yes" || test x"$with_speex" = x"yes" ; then
        echo "   - ogg"
    else dis="$dis ogg"
    fi
    echo "   - psx str        - pva"
    echo "   - qt/mpeg-4      - raw dv"
    echo "   - real/realaudio - roq"
    echo "   - smjpeg         - snd/au"
    echo "   - vmd            - voc"
    echo "   - vox            - vqa"
    echo "   - wav"
    test x"$with_wavpack" = x"yes"   && echo "   - WavPack" || dis="$dis WavPack"
    echo "   - wc3 mve        - ws aud"
    echo "   - yuv4mpeg2"
    test x"$dis" != x"" && echo "   (disabled plugins:$dis)"
    echo ""

    dnl video decoders
    dis=""
    echo " * video decoder plugins:"
    test x"$enable_libmpeg2" != x"no"  && echo "   - MPEG 1,2 (libmpeg2)"
    if test x"$enable_rawvideo" != x"no"; then
    echo "   - Amiga Bitplane"
    echo "   - Raw RGB"
    echo "   - Raw YUV"
    fi
    test x"$have_dxr3" = x"yes"        && echo "   - dxr3_video"         || dis="$dis dxr3"
    test x"$have_gdkpixbuf" = x"yes"   && echo "   - gdk-pixbuf"         || dis="$dis gdk-pixbuf"
    test x"$have_imagemagick" = x"yes" && echo "   - image"              || dis="$dis image"
    test x"$have_libjpeg" = x"yes"     && echo "   - libjpeg"            || dis="$dis libjpeg"
    test x"$have_libpng" = x"yes"      && echo "   - libpng"             || dis="$dis libpng"
    test x"$with_theora" = x"yes"      && echo "   - theora"             || dis="$dis theora"
    test x"$have_w32dll" = x"yes"      && echo "   - w32dll"             || dis="$dis w32dll"
    test x"$have_vdpau" = x"yes"       && echo "   - vdpau"              || dis="$dis vdpau"
    test x"$have_mmal" = x"yes"        && echo "   - mmal (Broadcom HW)" || dis="$dis mmal"
    test x"$have_vpx" = x"yes"         && echo "   - libvpx (VP8/VP9)"   || dis="$dis libvpx"
    test x"$with_openhevc" = x"yes"    && echo "   - OpenHEVC"           || dis="$dis OpenHEVC"
    test x"$with_libaom" = x"yes"      && echo "   - libaom (AV1)"       || dis="$dis libaom"
    test x"$with_dav1d" = x"yes"       && echo "   - dav1d (AV1)"        || dis="$dis dav1d"
    test x"$enable_ffmpeg" != x"no"    && echo "   - ffmpeg"             || dis="$dis ffmpeg"
    test x"$dis" != x"" && echo "   (disabled plugins:$dis)"
    echo ""

    dnl audio decoders
    dis=""
    echo " * audio decoder plugins:"
    test x"$enable_lpcm" != x"no"    && echo "   - linear PCM"          || dis="$dis LPCM"
    test x"$enable_dvaudio" != x"no" && echo "   - dvaudio"             || dis="$dis DV"
    test x"$enable_gsm610" != x"no"  && echo "   - GSM 06.10"           || dis="$dis GSM"
    test x"$enable_faad" != x"no"    && echo "   - faad"                || dis="$dis faad"
    test x"$enable_nosefart" != xno  && echo "   - Nosefart (NSF)"      || dis="$dis nosefart"
    test x"$have_libflac" = x"yes"   && echo "   - FLAC (with libFLAC)" || dis="$dis flac"
    test x"$with_speex" = x"yes"     && echo "   - speex"               || dis="$dis speex"
    test x"$with_vorbis" = x"yes"    && echo "   - vorbis"              || dis="$dis vorbis"
    test x"$have_w32dll" = x"yes"    && echo "   - w32dll"              || dis="$dis w32dll"
    test x"$with_wavpack" = x"yes"   && echo "   - WavPack"             || dis="$dis WavPack"
    if test x"$enable_mad" != x"no"; then
        if test x"$have_external_libmad" = x"yes"; then
            echo "   - MAD (MPG 1/2/3) (external library)"
        else
            echo "   - MAD (MPG 1/2/3) (*INTERNAL* library)"
        fi
    else dis="$dis mad"
    fi
    if test x"$enable_libdts" != x"no"; then
        if test x"$have_external_dts" = x"yes"; then
            echo "   - DTS (external library)"
        else
            echo "   - DTS (*INTERNAL* library)"
        fi
    else dis="$dis dts"
    fi
    if test x"$enable_a52dec" != x"no"; then
        test x"$my_a52dec_math" != x"fixed" && test x"$my_a52dec_math" != x"double" && my_a52dec_math="float"
        if test x"$have_external_a52dec" = x"yes"; then
            echo "   - A52/ra-dnet (external library, $my_a52dec_math math)"
        else
            echo "   - A52/ra-dnet (*INTERNAL* library, $my_a52dec_math math)"
        fi
    else dis="$dis a52"
    fi
    if test x"$enable_musepack" != x"no"; then
        if test x"$have_external_libmpcdec" = x"yes"; then
            echo "   - Musepack (external library)"
        else
            echo "   - Musepack (*INTERNAL* library)"
        fi
    else dis="$dis musepack"
    fi
    test x"$enable_ffmpeg" != x"no" && echo "   - ffmpeg"   || dis="$dis ffmpeg"
    test x"$dis" != x"" && echo "   (disabled plugins:$dis)"
    echo ""

    dnl spu decoders
    dis=""
    echo " * subtitle decoder plugins:"
    echo "   - spu             - spucc"
    echo "   - spucmml         - sputext"
    echo "   - spudvb"
    echo "   - PGS (BluRay)    - TextST (BluRay)"
    test x"$have_dxr3" = x"yes" && echo "   - dxr3_spu" || dis="$dis dxr3"
    test x"$dis" != x"" && echo "   (disabled plugins:$dis)"
    echo ""

    dnl post plugins
    dis=""
    echo " * post effect plugins:"
    echo "  * planar video effects:"
    echo "   - invert          - expand"
    echo "   - eq              - eq2"
    echo "   - boxblur         - denoise3d"
    echo "   - unsharp         - tvtime"
    test x"$enable_postproc" != x"no" && echo "   - postproc"  || dis="$dis postproc"
    test x"$enable_vdr" != x"no"      && echo "   - vdr"       || dis="$dis vdr"
    echo "  * SFX:"
    echo "   - goom            - oscope"
    echo "   - fftscope        - mosaico"
    echo "   - tdaudioanalyzer"
    echo "  * Audio:"
    echo "   - upmix           - upmix_mono"
    echo "   - volnorm         - scretch"
    test x"$dis" != x"" && echo "   (disabled plugins:$dis)"
    echo ""

    dnl Video plugins
    dis=""
    echo " * video driver plugins:"
    if test x"$have_opengl2" = x"yes"; then
        echo "   - OpenGL 2.0 (with bicubic scaling)"
        disgl=""
        test x"$have_glx" = x"yes" -a x"$no_x" != x"yes"        && echo "       - X11 (GLX) backend"     || disgl="$disgl GLX"
        test x"$have_egl" = x"yes" -a x"$no_x" != x"yes"        && echo "       - X11 (EGL) backend"     || disgl="$disgl EGL-X11"
        test x"$have_egl" = x"yes" -a x"$have_wayland" = x"yes" && echo "       - Wayland (EGL) backend" || disgl="$disgl EGL-Wayland"
        test x"$disgl" != x"" && echo "       (disabled plugins:$disgl)"
    else dis="$dis OpenGL2"
    fi
    if test x"$no_x" != x"yes"; then
        echo "   - XShm (X11 shared memory)"
        if test x"$have_xv" = x"yes"; then
            if test x"$have_xv_static" = x"yes"; then
                echo "   - Xv (XVideo *static*)"
            else
                echo "   - Xv (XVideo *shared*)"
            fi
        else dis="$dis xv"
        fi
        if test x"$have_xxmc" = x"yes"; then
            if test x"$have_vldexts" = x"yes"; then
                echo "   - XxMC (XVideo extended motion compensation)"
            else
                echo "   - XxMC (XVideo motion compensation - vld extensions DISABLED)"
            fi
        else dis="$dis xxmc"
        fi
        if test x"$have_opengl" = x"yes"; then
            if test x"$have_glu" = x"yes"; then
                echo "   - OpenGL (with GLU support)"
            else
                echo "   - OpenGL"
            fi
        else dis="$dis OpenGL"
        fi
        if test x"$have_vaapi" = x"yes" -a x"$enable_ffmpeg" != x"no"; then
            echo "   - vaapi (Video Acceleration (VA) API for Linux)"
            dis_va=""
            ena_va=""
            test x"$have_vaapi_x11" = x"yes" && ena_va="$ena_va x11" || dis_va="$dis_va x11"
            test x"$have_vaapi_glx" = x"yes" && ena_va="$ena_va glx" || dis_va="$dis_va glx"
            test x"$have_vaapi_drm" = x"yes" && ena_va="$ena_va drm" || dis_va="$dis_va drm"
            test x"$have_vaapi_wayland" = x"yes" && ena_va="$ena_va wayland" || dis_va="$dis_va wayland"
            ena_va="       - display plugins:$ena_va"
            test x"$dis_va" != x"" && ena_va="$ena_va (disabled plugins:$dis_va)"
            echo "$ena_va"
        else dis="$dis vaapi"
        fi
        test x"$have_vdpau" = x"yes"  && echo "   - vdpau (X11 Video Decode and Presentation API for Unix)" || dis="$dis vdpau"
        test x"$have_xvmc" = x"yes"   && echo "   - XvMC (XVideo motion compensation)"                      || dis="$dis xvmc"
        if test x"$have_sunfb" = x"yes" -a x"$have_sundga" = x"yes"; then
            echo "   - PGX64 (for Sun XVR100/PGX64/PGX24 cards)"
            echo "   - PGX32 (for Sun PGX32 cards)"
        else dis="$dis sunfb"
        fi
    else dis="$dis X11"
    fi
    if test x"$have_xcb" = x"yes"; then
        test x"$have_xcbshm" = x"yes" && echo "   - xcb-shm (X shared memory using XCB)" || dis="$dis xcb-shm"
        test x"$have_xcbxv" = x"yes"  && echo "   - xcb-xv (XVideo using XCB)"           || dis="$dis xcb-xv"
    else dis="$dis xcb"
    fi


    test x"$have_aalib" = x"yes"        && echo "   - aa (Ascii ART)"                  || dis="$dis aa"
    test x"$have_caca" = x"yes"         && echo "   - caca (Color AsCii Art)"          || dis="$dis caca"
    test x"$have_directfb" = x"yes"     && echo "   - directfb (DirectFB driver)"      || dis="$dis directfb"
    test x"$have_directx" = x"yes"      && echo "   - directx (DirectX video driver)"  || dis="$dis directx"
    test x"$have_fb" = x"yes"           && echo "   - fb (Linux framebuffer device)"   || dis="$dis fb"
    test x"$have_libstk" = x"yes"       && echo "   - stk (Libstk Set-top Toolkit)"    || dis="$dis stk"
    test x"$have_macosx_video" = x"yes" && echo "   - Mac OS X OpenGL"                 || dis="$dis macos"
    test x"$have_sdl" = x"yes"          && echo "   - sdl (Simple DirectMedia Layer)"  || dis="$dis sdl"
    test x"$have_mmal" = x"yes"         && echo "   - mmal (Broadcom MultiMedia Abstraction Layer)" || dis="$dis mmal"
    echo "   - none (dummy output plugin)"
    echo "   - raw"


    if test x"$have_dxr3" = x"yes"; then
        if test x"$have_encoder" = x"yes"; then
            echo "   - dxr3 (Hollywood+ and Creative dxr3, both mpeg and non-mpeg video)"
        else
            echo "   - dxr3 (Hollywood+ and Creative dxr3, mpeg video only)"
        fi
    else dis="$dis dxr3"
    fi
    if test x"$have_vidix" = x"yes"; then
        echo $ECHO_N "   - vidix ("

        if test x"$no_x" != x"yes"; then
            echo $ECHO_N "X11"
            if test x"$have_fb" = x"yes"; then
                echo $ECHO_N " and "
            fi
        fi

        if test x"$have_fb" = x"yes"; then
            echo $ECHO_N "framebuffer"
        fi

        echo $ECHO_N " support"

        if test x"$enable_dha_kmod" != x"no"; then
            echo " with dhahelper)"
        else
            echo ")"
        fi
    else dis="$dis vidix"
    fi

    test x"$dis" != x"" && echo "   (disabled plugins:$dis)"
    echo ""

    dnl Audio plugins
    dis=""
    echo " * audio driver plugins:"
    test x"$have_alsa" = x"yes"         && echo "   - alsa (ALSA - Advanced Linux Sound Architecture)" || dis="$dis alsa"
    test x"$have_coreaudio" = x"yes"    && echo "   - CoreAudio (Mac OS X audio driver)"    || dis="$dis CoreAudio"
    test x"$have_directx" = x"yes"      && echo "   - directx (DirectX audio driver)"       || dis="$dis directx"
    test x"$have_esound" = x"yes"       && echo "   - esd (Enlightened Sound Daemon)"       || dis="$dis esd"
    test x"$have_fusionsound" = x"yes"  && echo "   - fusionsound (FusionSound driver)"     || dis="$dis fusionsound"
    test x"$am_cv_have_irixal" = x"yes" && echo "   - irixal (Irix audio library)"          || dis="$dis irixal"
    test x"$have_jack" = x"yes"         && echo "   - Jack"                                 || dis="$dis jack"
    test x"$have_oss" = x"yes"          && echo "   - oss (Open Sound System)"              || dis="$dis oss"
    test x"$have_pulseaudio" = x"yes"   && echo "   - pulseaudio (PulseAudio sound server)" || dis="$dis pulse"
    test x"$have_sunaudio" = x"yes"     && echo "   - sun (Sun audio interface)"            || dis="$dis sun"
    test "x$have_sndio" = "xyes"	&& echo "   - sndio"                                || dis="$dis sndio"
    test "x$have_opensles" = "xyes"     && echo "   - OpenSL ES"                            || dis="$dis opensles"
    echo "   - none (dummy output plugin)"
    echo "   - file"
    test x"$dis" != x"" && echo "   (disabled plugins:$dis)"
    echo "---"


    dnl ---------------------------------------------
    dnl some user warnings
    dnl ---------------------------------------------

    dnl some levels of variable expansion to get final install paths
    final_libdir="`eval eval eval eval echo $libdir`"
    final_bindir="`eval eval eval eval echo $bindir`"

    if test -r /etc/ld.so.conf && ! grep -x "$final_libdir" /etc/ld.so.conf >/dev/null ; then
        if test "$final_libdir" != "/lib" -a "$final_libdir" != "/usr/lib" ; then
            if ! echo "$LD_LIBRARY_PATH" | egrep "(:|^)$final_libdir(/?:|/?$)" >/dev/null ; then
                echo
                echo "****************************************************************"
                echo "xine-lib will be installed to $final_libdir"
                echo
                echo "This path is not mentioned among the linker search paths in your"
                echo "/etc/ld.so.conf. This means it is possible that xine-lib will"
                echo "not be found when you try to compile or run a program using it."
                echo "If this happens, you should add $final_libdir to"
                echo "the environment variable LD_LIBRARY_PATH like that:"
                echo
                echo "export LD_LIBRARY_PATH=$final_libdir:\$LD_LIBRARY_PATH"
                echo
                echo "Alternatively you can add a line \"$final_libdir\""
                echo "to your /etc/ld.so.conf."
                echo "****************************************************************"
                echo
            fi
        fi
    fi

    if ! echo "$PATH" | egrep "(:|^)$final_bindir(/?:|/?$)" >/dev/null ; then
        echo
        echo "****************************************************************"
        echo "xine-config will be installed to $final_bindir"
        echo
        echo "This path is not in your search path. This means it is possible"
        echo "that xine-config will not be found when you try to compile a"
        echo "program using xine-lib. This will result in build failures."
        echo "If this happens, you should add $final_bindir to"
        echo "the environment variable PATH like that:"
        echo
        echo "export PATH=$final_bindir:\$PATH"
        echo
        echo "Note that this is only needed for compilation. It is not needed"
        echo "to have xine-config in your search path at runtime. (Although"
        echo "it will not cause any harm either.)"
        echo "****************************************************************"
        echo
    fi

    dnl warn if no X11 plugins will be built
    if test "x$no_x" = "xyes"; then
        case $host in
            *mingw*|*-cygwin) ;;
            *-darwin*) ;;
            *)
                echo
                echo "****************************************************************"
                echo "WARNING! No X11 output plugins will be built."
                echo
                echo "For some reason, the requirements for building the X11 video"
                echo "output plugins are not met. That means, that you will NOT be"
                echo "able to use the resulting xine-lib to watch videos in a window"
                echo "on any X11-based display (e.g. your desktop)."
                echo
                echo "If this is not what you want, provide the necessary X11 build"
                echo "dependencies (usually done by installing a package called"
                echo "XFree86-devel or similar) and run configure again."
                echo "****************************************************************"
                echo
                ;;
        esac
    fi
])
